//
//  XQHomeSmallCardUpAndDownView.m
//  JoinPeso
//
//  Created by 小琦 on 2024/11/20.
//

#import "XQHomeSmallCardUpAndDownView.h"

@implementation XQHomeSmallCardUpAndDownView

- (instancetype)init
{
    self = [super init];
    if (self) {
        [self makeUI];
        [self makeConstraints];
    }
    return self;
}

- (void)makeUI {
    [self addSubview:self.upLb];
    [self addSubview:self.downLb];
}

- (void)makeConstraints {
    [self.upLb mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(@0);
        make.left.right.equalTo(@0);
        make.height.mas_equalTo(17);
    }];
    [self.downLb mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.upLb.mas_bottom).offset(0);
        make.left.right.equalTo(@0);
        make.height.mas_equalTo(20);
        make.bottom.equalTo(@0);
    }];
}

#pragma mark - lazy

- (UILabel *)upLb {
    if (!_upLb) {
        _upLb = [[UILabel alloc] init];
        _upLb.textColor = [UIColor colorWithHexString:@"#999999"];
        _upLb.font = [UIFont systemFontOfSize:12];
    }
    return _upLb;
}

- (UILabel *)downLb {
    if (!_downLb) {
        _downLb = [[UILabel alloc] init];
        _downLb.textColor = [UIColor colorWithHexString:@"#0E1D31"];
        _downLb.font = [UIFont boldSystemFontOfSize:14];
    }
    return _downLb;
}

@end
